
#ifndef __DLG_CONTACT_CARD__
#define __DLG_CONTACT_CARD__

#include "afxwin.h"
class dlg_contact_card : public CDialog
{
	DECLARE_DYNAMIC(dlg_contact_card)
public:
	dlg_contact_card(CWnd* pParent = NULL);
	virtual ~dlg_contact_card();
	enum { IDD = IDD_CONTACTCARD };
protected:
	virtual void DoDataExchange(CDataExchange* pDX);
	DECLARE_MESSAGE_MAP()
public:
	static void new_instance();
	static dlg_contact_card* get_instance();
	static void delete_instance();
	static dlg_contact_card* this_;
protected:
	virtual BOOL OnInitDialog();
	virtual void PostNcDestroy();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnClose();
	afx_msg void OnBnClickedBtnCallWorktel();
	afx_msg void OnBnClickedBtnCallMobile();
	afx_msg void OnBnClickedBtnSendSms();
	afx_msg void OnBnClickedBtnSendfax();
	afx_msg void OnBnClickedBtnCallHometel();
public:
	void change_language();
	void set_card_info(CString name, CString company, CString position, CString department, \
		CString phone_work, CString mobile, CString fax, CString phone_home);
	void show_phone_cmd();
	void set_main_wnd(HWND hwnd){ main_wnd_ = hwnd; }
	void set_dlg_pos();
	void clean_data();
private:
	HWND main_wnd_;
	CString company_;
	CString position_;
	CString department_;
	CString phone_work_;
	CString mobile_;
	CString fax_;
	CString phone_home_;
	CString name_;
};
#endif